﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.ReportSource;
using CrystalDecisions.Shared;
using CrystalDecisions.Web.Design;
using System.Data.SqlClient;
using System.Data;
using Products;

public partial class report_Report : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

        ReportDocument redo = new CrystalReport4();
        DataTable tbl = Product.hoadon(31);
        //DataTable tbl = Orders.GetOrderNotOrder();
        redo.SetDataSource(tbl);
        CrystalReportViewer1.ReportSource = redo;
        CrystalReportViewer1.RefreshReport();
        GridView1.DataSource = tbl;
        GridView1.DataBind();
       
    }
}
